const onlineRoute = {
  path: 'learn-online',
  name: 'learn-online',
  redirect: '/admin/learn-online/course-opening',
  meta: { title: '在线学习' },
  component: () => import('@/layout/admin/public.vue'),
  children: [
    {
      path: 'course-opening',
      name: 'course-opening',
      redirect: '/admin/learn-online/course-opening/online-course-list',
      meta: { title: '开课管理' },
      component: () => import('@/views/Online/course-opening/layout.vue'),
      children: [
        {
          path: 'online-course-list',
          name: 'online-course-list',
          meta: { title: '课程列表' },
          component: () => import('@/views/Online/course-opening/index.vue'),
        },
        {
          path: 'online-course-manage',
          name: 'online-course-manage',
          meta: { title: '课程管理' },
          component: () =>
            import('@/views/Online/course-opening-manage/index.vue'),
        },
      ],
    },
    {
      path: 'classroom',
      name: 'online-classroom',
      meta: { title: '班级管理' },
      component: () => import('@/views/Online/classroom/index.vue'),
    },
    {
      path: 'homework-test',
      name: 'homework-test',
      meta: { title: '作业考试' },
      component: () => import('@/views/Online/homework-test/index.vue'),
    },
    {
      path: 'leave-manage',
      name: 'leave-manage',
      meta: { title: '请假管理' },
      component: () => import('@/views/Online/leave-manage/index.vue'),
    },
    {
      path: 'class-hour',
      name: 'online-class-hour',
      meta: { title: '课时管理' },
      component: () => import('@/views/Online/class-hour/index.vue'),
    },
    {
      path: 'learn-report',
      name: 'online-learn-report',
      meta: { title: '学习报告' },
      component: () => import('@/views/Online/learn-report/index.vue'),
    },
  ],
}

export default onlineRoute
